package com.yuzhi.master.sewage.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuzhi.master.sewage.device.domain.DrainDevice;
import com.yuzhi.master.sewage.device.domain.bo.DrainDeviceBo;
import com.yuzhi.master.sewage.device.domain.request.DrainDeviceReq;
import com.yuzhi.master.sewage.device.domain.vo.DrainDeviceVo;

import java.util.Collection;
import java.util.List;


/**
 * 排水设备表 服务类
 */
public interface IDrainDeviceService  extends IService<DrainDevice>{



    /**
     * 新增排水设备
     */
    Boolean insertByBo(DrainDeviceBo bo);

    /**
     * 修改排水设备
     */
    Boolean updateByBo(DrainDeviceBo bo);

    /**
     * 根据id删除排水设备
     */
    Boolean deleteById(String id, Boolean isValid);

    /**
     * 校验并批量删除排水设备
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 导出排水设备
     * @param request
     * @return
     */
    List<DrainDeviceVo> queryList(DrainDeviceReq request);
}
